package cn.stylefeng.guns.modular.business.frequency.financecheck.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import cn.stylefeng.guns.modular.business.frequency.finance.model.result.PkgFinanceCheck;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 对账单结算记录表
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_finance_check")
public class FinanceCheck extends BaseEntity {

    /**
     * id
     */
    @TableId("id")
    private Long id;

    /**
     * 结算人
     */
    @TableField("settlement_user")
    private String settlementUser;

    /**
     * 结算人电话
     */
    @TableField("settlement_phone")
    private String settlementPhone;

    /**
     * 未收合计
     */
    @TableField("total_collection_un")
    private BigDecimal totalCollectionUn;

    /**
     * 未付合计
     */
    @TableField("total_payment_un")
    private BigDecimal totalPaymentUn;

    /**
     * 应结款合计
     */
    @TableField("total_check")
    private BigDecimal totalCheck;

    /**
     * 结算凭证
     */
    @TableField("images")
    private String images;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 状态 0.正常 1.作废
     */
    @TableField("status")
    private Integer status;

    /**
     * 实际收付款时间
     */
    @TableField("real_collection_time")
    private Date realCollectionTime;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;

    @TableField(exist = false)
    private List<PkgFinanceCheck> checkOrderList;

}
